#include "ObserverAlarm.h"
#include "Subject.h"
#include <iostream>
#include "screen.h"
#include "WorkZone.h"
#include "AlarmZone.h"

using namespace std;

void ObserverAlarm::update(Subject * value)
{

	scr()->boxex("", Alarm()->x1,
					 Alarm()->y1,
					 Alarm()->x2,
					 Alarm()->y2,BT_ONE,0x0c,0x0c);
	
		scr()->puttext("Access Denied !",
		 -(15/2) + (Alarm()->x1+Alarm()->x2)/2,
		(Alarm()->y1+Alarm()->y2)/2,0x0c);

}